#!/bin/sh
#-----------------------------------------------------------------------------
#
#  set-mapnik-env
#
#  In this file several environment variables needed for creating OSM maps
#  with Mapnik are set.
#
#  Create a local copy of this file and customize the definitions for your
#  needs.
#
#-----------------------------------------------------------------------------
#
#  Every time you want to do some Mapnik rendering, source this file
#  from the shell:
#
#    source set-mapnik-env
#
#  or call other Mapnik scripts through this script:
#
#    set-mapnik-env customize-mapnik-map >osm.xml
#    set-mapnik-env generate_image.py
#    set-mapnik-env generate_tiles.py
#
#  Note that it is NOT enough to run this like this:
#    ./set-mapnik-env
#    ./generate_image.py
#
#-----------------------------------------------------------------------------

# This is the name of the *local* version of the Mapnik map file after it has
# been run through the cutomize-mapnik-map script.
export MAPNIK_MAP_FILE=~/mapnik/osm.xml

# This is the directory where the icons and symbols for Mapnik are. If
# you have checked out the OSM subversion directory into a directory
# called ~/svn.openstreetmap.org, the symbols will be in
# ~/svn.openstreetmap.org/applications/rendering/mapnik/symbols
export MAPNIK_SYMBOLS_DIR=~/mapnik/symbols

# This is the directory where you upacked the world_boundaries.tar.bz2
# file you got from
# http://artem.dev.openstreetmap.org/files/world_boundaries.tar.bz2
export MAPNIK_WORLD_BOUNDARIES_DIR=~/mapnik/world_boundaries

# Directory where the created map tiles should be stored. Must end with
# a slash (/)
export MAPNIK_TILE_DIR=~/mapnik/tiles/

# This is the name of the server running the PostgreSQL database. Leave
# this empty if your database is on the local machine.
export MAPNIK_DBHOST=""

# This is the TCP port where the PostgreSQL server is listening. The
# default port for PostgreSQL is 5432. Leave this empty if your database
# is on the local machine.
export MAPNIK_DBPORT=""

# This is the name of the database where the OSM data is stored.
export MAPNIK_DBNAME='osm'

# This is the username we should use to log into the PostgreSQL database.
export MAPNIK_DBUSER=`whoami`

# This is the password we should use to log into the PostgreSQL database.
export MAPNIK_DBPASS=""

# This is the prefix used in the table names. Matches the -p option in osm2pgsql
# Unspecified defaults to "planet_osm"
export MAPNIK_PREFIX=""

#-----------------------------------------------------------------------------
# If there was any program name given on the command line, we call it now.
$*

#-----------------------------------------------------------------------------
